<?php
namespace app\erp\validate;
use think\Validate;
class Jdrule extends Validate{
    protected $rule = [
        'spu' => 'unique:jd,spu^site_id'
    ];
    
    protected $message = [
        'spu.unique' => '该商品编号已被采集过。'
    ];
}